#!/bin/bash
date_stamp=`date "+%Y-%m-%d %H:%M:%S"`
echo "123+123" 

scp -r  build-server:/home/ubuntu/workspace/Sh-Poc-Demo/dist/*  /home/jenkins/sh-poc-demo/ 
sudo rm -rf /www/sh-poc-demo/*
#备份--回滚
#mkdir /home/jenkins/bak/$1
#cp -r /home/jenkins/sh-poc-demo/*  /home/jenkins/bak/$1/  
sudo cp  -r /home/jenkins/sh-poc-demo/*   /www/sh-poc-demo
sudo nginx -s reload
send_weixin_v2   "【部署推送】\n【$date_stamp】\n【上海POC DEMO】\n【frontend/前端/】\n【测试环境】【SGX50/10.10.10.50】部署完成 。from  部署脚本。  "
